package com.test.aop.config;

import com.test.aop.log.Logger;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

/**
 * @author SN
 * @date 2020/4/18 13:10
 * @desc
 */
@Configuration
@ComponentScan(basePackages = {"com.test.service"})
@EnableAspectJAutoProxy
public class SpringConfig1 {

    @Bean
    public Logger logger(){
        return new Logger();
    }

}